<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); hookscriptoutput('edit');?><?php include template('common/header'); ?><div id="wp" class="wp">
    <div id="pt" class="bm cl">
        <div class="z">
            <a href="./" class="nvhm" title="首页">中国自行车在线</a> <em>›</em>
            <a href="plugin.php?id=dzapp_zhibo">直播</a> <em>›</em>
            <a href="plugin.php?id=dzapp_zhibo&amp;mod=zhibocp">管理中心</a> <em>›</em>
            活动
        </div>
    </div>
    <div id="ct" class="ct2_a wp cl">
        <div class="mn">
            <div class="bm bw0">
                <ul class="tb mbm cl">
                    <li class="a"><a href="plugin.php?id=dzapp_zhibo&amp;mod=zhibocp&amp;ac=activity&amp;op=post&amp;activity_id=7">编辑活动</a></li>
                </ul>
                <script src="data/cache/calendar.js?pKF" type="text/javascript" type="text/javascript"></script>
                <script src="source/plugin/dzapp_editor/ueditor.config.js" type="text/javascript" type="text/javascript"></script>
                <script src="source/plugin/dzapp_editor/ueditor.all.min.js" type="text/javascript" type="text/javascript"></script>
                <script src="source/plugin/dzapp_editor/lang/zh-cn/zh-cn.js" type="text/javascript" type="text/javascript"></script>
                <form method="post" action="plugin.php?id=zhibo&amp;ac=activity&amp;op=edit2" enctype="multipart/form-data">
                    <table cellspacing="0" cellpadding="0" class="tfm">
                        <input type="hidden" name="active_id" value="<?php echo $getData['0']['id'];?>" />
                        <input type="hidden" name="channelId" value="<?php echo $getData['0']['channelId'];?>" />
                        <tbody><tr>
                            <th><strong class="rq y">*</strong><label for="channelName">名称</label></th>
                            <td><input type="text" name="channelName" id="channelName" class="px" value="<?php echo $getData['0']['channelName'];?>"></td>
                        </tr>
                        <tr>
                            <th><label for="start">开始时间</label></th>
                            <td><input type="calendar" name="start" id="start" class="px" value="<?php echo $getData['0']['start'];?>" onclick="showcalendar(event, this, 1)"></td>
                        </tr>
                        <tr>
                            <th><label for="end">结束时间</label></th>
                            <td><input type="calendar" name="end" id="end" class="px" value="<?php echo $getData['0']['end'];?>" onclick="showcalendar(event, this, 1)"></td>
                        </tr>
                        <tr>
                            <th><label for="cover_img_url">封面图片</label></th>
                            <td>
                                <input type="file" name="image1" id="image1" class="pf">
                                <p class="mtn">
                                    <img height="75" src="http://pic.58pic.com/58pic/12/35/52/27d58PICY2J.jpg">
                                </p>
                            </td>
                        </tr>
                        <tr>
                            <th><label for="code_rate">输出画质</label></th>
                            <td>
                                <input type="checkbox" name="outputRate[]" value="0"/>原画
                                <input type="checkbox" name="outputRate[]" value="10"/>标清
                                <input type="checkbox" name="outputRate[]" value="20"/>高清
                            </td>
                        </tr>
                        <tr>
                            <th><label for="tab_content">直播描述</label></th>
                            <td>
                                <textarea name="channelDescribe" id="channelDescribe" class="pt" rows="5">中国自行车在线目前与多家国内外知名品牌达成合作,为中国自行车玩家提供专业,广阔的互动交流平台.合作联系:0571-58237654</textarea>
                                <input type="hidden" name="picid" id="picid" value="0">
                                <script id="editor" type="text/plain" style="width:99%;height:500px;"></script>
                            </td>
                        </tr>

                        <tr>
                            <th></th>
                            <td><button type="submit" class="pn pnp"><strong>提交</strong></button></td>
                        </tr>
                        </tbody></table>
                </form>
                <script type="text/javascript">
                    function validate(theform) {
                        if(theform.name.value == '') {
                            alert('!name_validate!');theform.name.focus();return false;
                        }
                        if(theform.tab_title.value.length > 4) {
                            alert('自定义标题长度请限制在4个汉字以内');theform.tab_title.focus();return false;
                        }
                        theform.tab_content.value = ue.getContent();
                    }
                    var ue = UE.getEditor('editor');
                    ue.ready(function() {
                        ue.setContent($('tab_content').value);
                    });
                </script>
            </div>
        </div>
        <div class="appl"><div class="tbn">
            <h2 class="mt bbda">管理中心</h2>
            <ul id="g1">
                <li class="a"><a href="plugin.php?id=zhibo">活动</a></li>
                <li><a href="plugin.php?id=zhibo&amp;ac=gift">礼物</a></li>
            </ul>
        </div>
        </div>
    </div></div><?php include template('common/footer'); ?>